<?php 

class Add_Publish_Reply_SavePost_Validate_Content extends Ext_Validate_Abstract
{
    protected $_content;
    
    public function __construct($content)
    {
        $this->_content = $content;
    }
    
    public function isValid()
    {
        $validatorChain = new Zend_Validate();
        $validatorChain
            ->addValidator(new Zend_Validate_NotEmpty(), true)
            ;
        
        if(!$validatorChain->isValid($this->_content)) {
            $this->addTitleMessages('Reply content', $validatorChain->getMessages());
            return false;
        }
        
        return true;
    }
}
